/*
 * Copyright 2016-2016 the original author or authors.
 * Created on 2016/12/22 下午8:17
 */
package cn.com.geasy.config;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * DispathcerServlet 配置声明
 *
 * @author Mechanic
 * @version 1.0
 */
public class WebInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class<?>[]{RootConfig.class};
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        //return new Class<?>[]{WebConfig.class};
        return new Class<?>[0];
    }

    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
